import { IsNumber } from 'class-validator';
import { ApiProperty, PartialType } from '@nestjs/swagger';
import { CreateSysActionDto, CreateySysMenuDto } from './create-sy.dto';

export class UpdateSysMenuDto extends PartialType(CreateySysMenuDto) {
    @IsNumber(
        {},
        {
            message: '缺少id',
        },
    )
    @ApiProperty({
        example: 0,
        type: 'int',
        description: '菜单ID值'
    })
    id: number;
}

 export class UpdateSysActionDto extends PartialType(CreateSysActionDto) {
    @IsNumber(
        {},
        {
            message: '缺少id',
        },
    )
    @ApiProperty({
        description: '功能ID',
        example: 0,
        type: 'int',
    })
    id: number;
 }
 

/* export class SysMenuTreeDto extends CreateySysMenuDto {
    @ApiProperty({
        example: 0,
        type: 'int',
        description: '菜单ID值'
    })
    id: number;
} */

/* export class SysActionDto extends CreateSysActionDto {
    @ApiProperty({
        example: 0,
        type: 'int',
        description: '功能ID值'
    })
    id: number;
} */